{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Stata\log_figure2.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}14 Jul 2018, 19:50:50
{txt}
{com}. 
. set more off
{txt}
{com}. set scheme s1manual
{txt}
{com}. 
. probit ethnicnrt1 i.smlmegip##i.highdemoc unrest1 majpow1 lnCapRatio alliance i.highdemoc##i.highdemoc2 tradedep NonENRyrst1 NonENRyrs2t1 NonENRyrs3t1 ENRyrst1 ENRyrs2t1 ENRyrs3t1, cluster(dyadid), if Contig==1 & tektarget_d1==1

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1849.9727}  
Iteration 1:{space 3}log pseudolikelihood = {res:-370.63046}  
Iteration 2:{space 3}log pseudolikelihood = {res:-331.60512}  
Iteration 3:{space 3}log pseudolikelihood = {res:-316.64267}  
Iteration 4:{space 3}log pseudolikelihood = {res:-315.75424}  
Iteration 5:{space 3}log pseudolikelihood = {res:-315.74679}  
Iteration 6:{space 3}log pseudolikelihood = {res:-315.74679}  
{res}
{txt}Probit regression{col 49}Number of obs{col 67}= {res}     7,771
{txt}{col 49}Wald chi2({res}16{txt}){col 67}= {res}   2187.61
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-315.74679{txt}{col 49}Pseudo R2{col 67}= {res}    0.8293

{txt}{ralign 86:(Std. Err. adjusted for {res:269} clusters in dyadid)}
{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34}    Robust
{col 1}          ethnicnrt1{col 22}{c |}      Coef.{col 34}   Std. Err.{col 46}      z{col 54}   P>|z|{col 62}     [95% Con{col 75}f. Interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}1.smlmegip {c |}{col 22}{res}{space 2}  .028956{col 34}{space 2} .1334226{col 45}{space 1}    0.22{col 54}{space 3}0.828{col 62}{space 4}-.2325475{col 75}{space 3} .2904596
{txt}{space 9}1.highdemoc {c |}{col 22}{res}{space 2} .1555473{col 34}{space 2} .2114613{col 45}{space 1}    0.74{col 54}{space 3}0.462{col 62}{space 4}-.2589093{col 75}{space 3} .5700039
{txt}{space 20} {c |}
{space 2}smlmegip#highdemoc {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.8322339{col 34}{space 2} .3149245{col 45}{space 1}   -2.64{col 54}{space 3}0.008{col 62}{space 4}-1.449475{col 75}{space 3}-.2149933
{txt}{space 20} {c |}
{space 13}unrest1 {c |}{col 22}{res}{space 2}-.0175504{col 34}{space 2} .0208166{col 45}{space 1}   -0.84{col 54}{space 3}0.399{col 62}{space 4}-.0583503{col 75}{space 3} .0232494
{txt}{space 13}majpow1 {c |}{col 22}{res}{space 2}-.0338852{col 34}{space 2} .2245965{col 45}{space 1}   -0.15{col 54}{space 3}0.880{col 62}{space 4}-.4740863{col 75}{space 3} .4063159
{txt}{space 10}lnCapRatio {c |}{col 22}{res}{space 2} .1016519{col 34}{space 2} .0485024{col 45}{space 1}    2.10{col 54}{space 3}0.036{col 62}{space 4} .0065889{col 75}{space 3} .1967149
{txt}{space 12}alliance {c |}{col 22}{res}{space 2} .1523896{col 34}{space 2} .1236484{col 45}{space 1}    1.23{col 54}{space 3}0.218{col 62}{space 4}-.0899569{col 75}{space 3} .3947361
{txt}{space 8}1.highdemoc2 {c |}{col 22}{res}{space 2} .0563902{col 34}{space 2} .1856193{col 45}{space 1}    0.30{col 54}{space 3}0.761{col 62}{space 4}-.3074169{col 75}{space 3} .4201973
{txt}{space 20} {c |}
highdemoc#highdemoc2 {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.4580067{col 34}{space 2} .2474655{col 45}{space 1}   -1.85{col 54}{space 3}0.064{col 62}{space 4}-.9430302{col 75}{space 3} .0270168
{txt}{space 20} {c |}
{space 12}tradedep {c |}{col 22}{res}{space 2}-.2931053{col 34}{space 2} .1495744{col 45}{space 1}   -1.96{col 54}{space 3}0.050{col 62}{space 4}-.5862658{col 75}{space 3} .0000552
{txt}{space 9}NonENRyrst1 {c |}{col 22}{res}{space 2}-.3280496{col 34}{space 2} .0546651{col 45}{space 1}   -6.00{col 54}{space 3}0.000{col 62}{space 4}-.4351912{col 75}{space 3} -.220908
{txt}{space 8}NonENRyrs2t1 {c |}{col 22}{res}{space 2} .0138658{col 34}{space 2} .0035343{col 45}{space 1}    3.92{col 54}{space 3}0.000{col 62}{space 4} .0069387{col 75}{space 3} .0207929
{txt}{space 8}NonENRyrs3t1 {c |}{col 22}{res}{space 2}-.0001673{col 34}{space 2} .0000585{col 45}{space 1}   -2.86{col 54}{space 3}0.004{col 62}{space 4} -.000282{col 75}{space 3}-.0000526
{txt}{space 12}ENRyrst1 {c |}{col 22}{res}{space 2}  .434381{col 34}{space 2} .0606026{col 45}{space 1}    7.17{col 54}{space 3}0.000{col 62}{space 4} .3156021{col 75}{space 3} .5531599
{txt}{space 11}ENRyrs2t1 {c |}{col 22}{res}{space 2}-.0186582{col 34}{space 2} .0042124{col 45}{space 1}   -4.43{col 54}{space 3}0.000{col 62}{space 4}-.0269143{col 75}{space 3}-.0104021
{txt}{space 11}ENRyrs3t1 {c |}{col 22}{res}{space 2} .0002301{col 34}{space 2} .0000694{col 45}{space 1}    3.32{col 54}{space 3}0.001{col 62}{space 4} .0000941{col 75}{space 3} .0003661
{txt}{space 15}_cons {c |}{col 22}{res}{space 2}-.7286591{col 34}{space 2} .1782363{col 45}{space 1}   -4.09{col 54}{space 3}0.000{col 62}{space 4}-1.077996{col 75}{space 3}-.3793223
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 2}Note: 183 failures and 12 successes completely determined.{p_end}

{com}. 
. replace smlmegip=1
{txt}(35,233 real changes made)

{com}. replace highdemoc=1
{txt}(30,095 real changes made)

{com}. replace unrest1=1
{txt}(42,211 real changes made)

{com}. replace majpow1=0
{txt}(3,963 real changes made)

{com}. replace lnCapRatio=-1.936979
{txt}(47,606 real changes made)

{com}. replace alliance=0
{txt}(21,990 real changes made)

{com}. replace highdemoc2=0
{txt}(22,049 real changes made)

{com}. replace tradedep=.2491212
{txt}(47,606 real changes made)

{com}. replace NonENRyrst1=0
{txt}(46,440 real changes made)

{com}. replace NonENRyrs2t1=0
{txt}(46,440 real changes made)

{com}. replace NonENRyrs3t1=0
{txt}(46,440 real changes made)

{com}. replace ENRyrst1=0
{txt}(1,256 real changes made)

{com}. replace ENRyrs2t1=0
{txt}(1,256 real changes made)

{com}. replace ENRyrs3t1=0
{txt}(1,256 real changes made)

{com}. predict p1
{txt}(option {bf:pr} assumed; Pr(ethnicnrt1))

{com}. predict ihat, xb
{txt}
{com}. predict error, stdp
{txt}
{com}. generate lb = ihat - invnormal(0.975)*error
{txt}
{com}. generate ub = ihat + invnormal(0.975)*error
{txt}
{com}. generate plb1 = normal(lb)
{txt}
{com}. generate pub1 = normal(ub)
{txt}
{com}. drop ihat error lb ub
{txt}
{com}. 
. replace smlmegip=1
{txt}(0 real changes made)

{com}. replace highdemoc=0
{txt}(47,606 real changes made)

{com}. predict p2
{txt}(option {bf:pr} assumed; Pr(ethnicnrt1))

{com}. predict ihat, xb
{txt}
{com}. predict error, stdp
{txt}
{com}. generate lb = ihat - invnormal(0.975)*error
{txt}
{com}. generate ub = ihat + invnormal(0.975)*error
{txt}
{com}. generate plb2 = normal(lb)
{txt}
{com}. generate pub2 = normal(ub)
{txt}
{com}. drop ihat error lb ub
{txt}
{com}. 
. replace smlmegip=0
{txt}(47,606 real changes made)

{com}. replace highdemoc=1
{txt}(47,606 real changes made)

{com}. predict p3
{txt}(option {bf:pr} assumed; Pr(ethnicnrt1))

{com}. predict ihat, xb
{txt}
{com}. predict error, stdp
{txt}
{com}. generate lb = ihat - invnormal(0.975)*error
{txt}
{com}. generate ub = ihat + invnormal(0.975)*error
{txt}
{com}. generate plb3 = normal(lb)
{txt}
{com}. generate pub3 = normal(ub)
{txt}
{com}. drop ihat error lb ub
{txt}
{com}. 
. replace smlmegip=0
{txt}(0 real changes made)

{com}. replace highdemoc=0
{txt}(47,606 real changes made)

{com}. predict p4
{txt}(option {bf:pr} assumed; Pr(ethnicnrt1))

{com}. predict ihat, xb
{txt}
{com}. predict error, stdp
{txt}
{com}. generate lb = ihat - invnormal(0.975)*error
{txt}
{com}. generate ub = ihat + invnormal(0.975)*error
{txt}
{com}. generate plb4 = normal(lb)
{txt}
{com}. generate pub4 = normal(ub)
{txt}
{com}. drop ihat error lb ub
{txt}
{com}. 
. duplicates drop p1 plb1 pub1 p2 plb2 pub2 p3 plb3 pub3 p4 plb4 pub4, force

{p 0 4}{txt}Duplicates in terms of {res} p1 plb1 pub1 p2 plb2 pub2 p3 plb3 pub3 p4 plb4 pub4{p_end}

{txt}(47,605 observations deleted)

{com}. keep p1 plb1 pub1 p2 plb2 pub2 p3 plb3 pub3 p4 plb4 pub4
{txt}
{com}. stack p1 plb1 pub1 p2 plb2 pub2 p3 plb3 pub3 p4 plb4 pub4 , group(4) clear
{txt}
{com}. rename _stack type
{res}{txt}
{com}. label define type 1 "S Size, High Democ" 2 "S Size, Low Democ" 3 "L Size, High Democ" 4 "L Size, Low Democ"
{txt}
{com}. label values type type
{txt}
{com}. eclplot p1 plb1 pub1 type, scale(1.25) aspectratio(.65) ytitle("") xtitle("") xsize(4) xlabel(1 2 3 4)
{res}{txt}
{com}. graph save Graph figure2.gph, replace
{txt}(note: file figure2.gph not found)
{res}{txt}(file figure2.gph saved)

{com}. 
. clear
{txt}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Stata\log_figure2.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}14 Jul 2018, 19:50:52
{txt}{.-}
{smcl}
{txt}{sf}{ul off}